package com.qianguo.shop.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;
import com.eva.androidlibrary.api.entity.BaseBean;

/**
 * 店员信息
 *
 * @author eva
 * @date 2015-11-19
 */
public class ShopAssistant extends BaseBean implements Parcelable {

    /** 店员ID */
    private int uuid;

    /** 店铺ID */
    @JSONField(name = "shopid")
    private String shopID;

    /** 店员姓名 */
    private String realname;

    /** 店员昵称 */
    private String nickname;

    /** 店员手机号 */
    private String phone;

    /** 店员头像 */
    private String avatar;

    /** 店员性别 */
    private String sex;

    /** 性别代号 */
    private int sexcode;

    /** 当前用户在店铺的角色, 1创建者即超级管理员,2管理者,10普通店员 */
    private int role;

    /** 绑定状态, 待商定todo */
    private int status;

    /** 创建时间 */
    @JSONField(name = "create_at")
    private float createAt;

    /** 更新时间 */
    @JSONField(name = "update_at")
    private float updateAt;

    /** 职位名称 */
    private String positionName;

    /** 近7天处理订单量 */
    private int processOrderCount;

    public ShopAssistant() {
    }

    public int getUuid() {
        return uuid;
    }

    public void setUuid(int uuid) {
        this.uuid = uuid;
    }

    public String getShopID() {
        return shopID;
    }

    public void setShopID(String shopID) {
        this.shopID = shopID;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getSexcode() {
        return sexcode;
    }

    public void setSexcode(int sexcode) {
        this.sexcode = sexcode;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public float getCreateAt() {
        return createAt;
    }

    public void setCreateAt(float createAt) {
        this.createAt = createAt;
    }

    public float getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(float updateAt) {
        this.updateAt = updateAt;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public int getProcessOrderCount() {
        return processOrderCount;
    }

    public void setProcessOrderCount(int processOrderCount) {
        this.processOrderCount = processOrderCount;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.uuid);
        dest.writeString(this.shopID);
        dest.writeString(this.realname);
        dest.writeString(this.nickname);
        dest.writeString(this.phone);
        dest.writeString(this.avatar);
        dest.writeString(this.sex);
        dest.writeInt(this.sexcode);
        dest.writeInt(this.role);
        dest.writeInt(this.status);
        dest.writeFloat(this.createAt);
        dest.writeFloat(this.updateAt);
        dest.writeString(this.positionName);
        dest.writeInt(this.processOrderCount);
    }

    protected ShopAssistant(Parcel in) {
        this.uuid = in.readInt();
        this.shopID = in.readString();
        this.realname = in.readString();
        this.nickname = in.readString();
        this.phone = in.readString();
        this.avatar = in.readString();
        this.sex = in.readString();
        this.sexcode = in.readInt();
        this.role = in.readInt();
        this.status = in.readInt();
        this.createAt = in.readFloat();
        this.updateAt = in.readFloat();
        this.positionName = in.readString();
        this.processOrderCount = in.readInt();
    }

    public static final Creator<ShopAssistant> CREATOR = new Creator<ShopAssistant>() {
        public ShopAssistant createFromParcel(Parcel source) {
            return new ShopAssistant(source);
        }

        public ShopAssistant[] newArray(int size) {
            return new ShopAssistant[size];
        }
    };
}
